package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.SearchEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 棋牌室桌子信息对象 t_tables
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TTables extends SearchEntity
{

    /** 主键 */
    @Excel(name = "主键")
    @TableId(type = IdType.ASSIGN_UUID)

    private String uuid;

    /** 桌子号 */
    @Excel(name = "桌子号")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long tableId;

    /** 单价 */
    @Excel(name = "单价")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal price;
    /** 开台时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开台时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date beginTime;
@TableField(exist = false)
    /* 结算标识*/
    private String item;
    /** 是否开台 */
    @Excel(name = "是否开台")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String status;

    /** 上次开台时长 */
    @Excel(name = "上次开台时长")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String time;

    /** 消费总金额 */
    @Excel(name = "消费总金额")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal totalPrice;
}
